<div class="container mc-list">
	<div class="titlebar row">
		<div class="col-xs-6"><h2>我的播放码</h2></div>
		<div class="col-xs-6 right">

		</div>
	</div>
	<div class="table-responsive">
		<table class="table table-hover">
			<tr>
				<th>序号</th>
				<!--<th>课程名称</th>-->
				<!--<th>课时名称</th>-->
				<!--<th>课时编号</th>-->
				<th>加密批次</th>
				<th>用户机器码</th>
				<!--<th>用户播放码</th>-->
				<th>设备类型</th>
				<th>有效期(天)</th>
				<th>操作</th>
			</tr>
			<tr ng-repeat="i in playcode.list">
				<td>{{$index}}</td>
				<!--<td>{{i.courseName}}</td>-->
				<!--<td>{{i.syllabusName}}</td>-->
				<!--<td>{{i.syllabusSeq}}</td>-->
				<td>{{i.encryptionBatch}}</td>
				<td>{{i.machineCode}}</td>
				<!--<td><div class="break">{{i.code}}</div></td>-->
				<td>{{i.type == '1'?'Mac':i.type == '2'?'Android':'Windows'}}</td>
				<td>{{i.validityPeriod}}</td>
				<td>
					<button class="btn btn-success btn-sm btn-show" ng-click="playcode.show(i.code)">查看播放码</button>
					<!--<button class="btn btn-success btn-sm btn-show" ui-zeroclip zeroclip-copied="copied=true" zeroclip-model="playcode.code">copy</button>-->
				</td>
			</tr>
			<tr>
				<td colspan="6" ng-show="machinecode.list.length<=0">
					暂无机器码
				</td>
			</tr>
			<tr>
				<td colspan="6" ng-show="loading">
					<div class="spinner"></div>
				</td>
			</tr>
		</table>
	</div>
	<!-- <div class="panel-footer text-right text-center-xs">
		<uib-pagination total-items="bigTotalItems" ng-model="bigCurrentPage" max-size="maxSize" class="pagination-sm m-t-none m-b-none" boundary-links="true" rotate="false" num-pages="numPages"></uib-pagination>
	</div> -->
</div>
<script type="text/ng-template" id="modal.html">
        <div class="modal-header">
            <h3 class="modal-title" id="modal-title-{{name}}">我的{{'播放码'}}</h3>
        </div>
        <div class="modal-body" id="modal-body-{{name}}">
            {{code}}
        </div>
		<div class="modal-footer">
            <button class="btn btn-success btn-sm btn-show" ui-zeroclip zeroclip-copied="copied=true" zeroclip-model="code">复制</button>
            <button class="btn btn-success btn-sm" type="button" ng-click="ok()">确定</button>
        </div>
</script>
